import axios from 'axios'

axios.defaults.baseURL = MY_URL

axios.interceptors.request.use(config => {
  return config
})

axios.interceptors.response.use(
  res => {
    return res.data
  },
  err => {
    return Promise.reject(err)
  }
)

export default axios
